package kr.shincooper.funnyhome.common.springutil;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
import org.springframework.stereotype.Repository;

import com.ibatis.sqlmap.client.SqlMapClient;

/**
 * 
 * <pre>
 * GCP Base DAO
 * </pre>
 * 
 * @author bluemirr5@gmail.com
 *
 */
@Repository
public class BaseDao extends SqlMapClientDaoSupport {
	
	/**
	 * 
	 * <pre>
	 * SqlMapClientDaoSupport의 sqlMapClient를 자동주입하기 위한 Custom Setter 메서드
	 * 
	 * history
	 * 2014. 2. 4. bluemirr5@gmail.com
	  *  초기 개발
	 * </pre>
	 *
	 * @since 2014. 2. 4.
	 */
	@Autowired
	@Qualifier("sqlMapClient")
	public void setCustomSqlMapClient(SqlMapClient sqlMapClient) {
		this.setSqlMapClient(sqlMapClient);
	}
	
}